{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
	  <section class="content">
          <div class="row">
                              <section class="col-lg-2 connectedSortable" style=" padding-right:0px;">
                                    <div>
                                        <a href="index.php?a=resource.list" class="btn btn-default">教学资源</a>
                                        <a href="index.php?a=resource.favlist" class="btn btn-default">我的收藏</a>
                                    </div>
                                  {%include file="resource/resource.left.tpl.php"%}
                            </section>
                            <!--树状图结束-->
                            <section class="col-lg-10 connectedSortable">
                                                 <div class="box box-default box-solid">
                                                            <div class="box-header with-border">
                                                                <span class="fa fa-user-plus" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                                                                <p class="box-title">分类列表</p>
                                                                <a href="index.php?a=resource.classifyadd" class="btn btn-primary btn-sm" style="float:right; color:#fff;"> 新 增 </a>
                                                            </div>
                                                            <div class="box-body">
                                                                <h4 class="text-center" style="color:#3c8dbc;">设置我的资源分类</h4>
                                                                 <table class="table table-bordered table-striped"  id="mytable">
                                                                            <thead>
                                                                                <tr style="background-color:#fcba4b;">
                                                                                    <td>分类名称</td>
                                                                                    <td width="150">操作</td>
                                                                                </tr>	
                                                                            </thead>
                                            
                                                                            <tbody>
                                                                            {%foreach from=$part_lists key=key item=value%}	
                                                                                <tr>
                                                                                    <td>{%$value.part_name%}</td>
                                                                                    <td>
                                                                                        <a href="index.php?a=resource.classifyupdate&part_id={%$value.part_id%}" class="btn btn-warning btn-sm" title="修改"> <i class="fa fa-edit (alias)"></i> </a>
                                                                                        <a href="index.php?a=resource.classifydel&part_id={%$value.part_id%}"  title="删除" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认删除信息?')==false)return false;"> <i class="fa fa-trash"></i> </a>
                                                                                    </td>
                                                                                </tr>	
                                                                                {%/foreach%}  
                                                                         </tbody>
                                                                    </table>             
                                                               {%$page%} 
                                                            </div><!--box-body -->
                                                   </div><!--box box-default box-solid-->
                            </section>   
      </div><!--row-->
    </section> 
    </div>
    </section>
   </div>
  {%include file="index.footer.tpl.php"%}

